<!-- 
java sdk 
-->

<html>
<head>
<title>Java SDK下载</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<script src="//cdn.staticfile.org/jquery/1.12.4/jquery.min.js"></script>
<script type="text/javascript">
    $(function() {
        $("#down-src").on("click", function() {
            window.open("?action=java-sdk-src-download&sdk_package=" + $("#sdk_package").val() + "&sdk_type=" + $("#sdk_type").val()+"&scope=${(RequestParameters['scope'])!}");
        });
    });
</script>
</head>
<body>
    <h1>Java SDK 使用说明</h1>
    <a href="?from=java-sdk">Index</a>
    >
    <a>Java SDK</a>

    <br />
    <br />

    SDK包名:
    <input id="sdk_package" value="xxx" /> SDK类名:
    <input id="sdk_type" value="BudoDubboHttpApiOpenJavaSdk" />
    <a href="#down-src" id="down-src">预览 java-sdk 源码</a>
    <a href="#down-sdk">下载 java-sdk JAR</a>
    <h3>Sdk使用示例</h3>
    <pre>
// 在实际应用中，BudoDubboHttpApiJavaSdk应该单例
BudoDubboHttpApiOpenJavaSdk sdk = new BudoDubboHttpApiOpenJavaSdk();

// 异步执行请求的线程池
javaSdk.setExecutorService(Executors.newFixedThreadPool(20));

// 接口通信层
javaSdk.setTransporter(new BudoRequestTransporter());

// 调用接口方法
javaSdk.AdminEngineerApi().updateEngineerStatus(1, 2, 3).then(new ApiCallback() {
    // 失败时候进入
    public void fail(ApiErrorEntity error, RequestContext request) {
        System.err.println("fail, error=" + error);
    }
    // 成功时进入
    public void success(Object result, RequestContext request) {
        System.err.println("success, result=" + result);
    }
});
</pre>

    <a target="_blank" href="?action=javascript-sdk&scope=${(RequestParameters['scope'])!}">Javascript SDK</a>
    <a>Java SDK</a>
    <a target="_blank" href="?action=typescript-sdk&scope=${(RequestParameters['scope'])!}">TypeScript SDK</a>
    <a target="_blank" href="?action=objectivec-sdk&scope=${(RequestParameters['scope'])!}">Objective-C SDK</a>
    <a target="_blank" href="?action=cpp-sdk&scope=${(RequestParameters['scope'])!}">C++ SDK</a>
</body>
</html>